import React from 'react'

function Addresslist(props) {
    const {address}=props
  return (
    <div>
        <button>添加</button>
        {address.length?address.map((item)=>{
            return <li key={item.id}>
                <input type="checkbox" name="" id="" />
                <div>
                    <h3>{item.name} {item.phone}</h3>
                    <p>{item.province} {item.city} {item.area}</p>
                </div>
                <p>
                    <button>修改</button>
                    <button>删除</button>
                </p>
            </li>
        }):'暂无数据'}
    </div>
  )
}

export default Addresslist